<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>    
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Templates</title>
</head>
<body>
<jsp:include page="../menu.jsp" />
Templates
		<table>
            <tr>
                <th>id</th>
                <th>name</th>
                <th>description</th>
                <th>modified</th>
            </tr>
			<c:forEach items="${templates}" var="t">
                <tr>
                    <td><a href="/cms/template/${t.id}"><c:out value="${t.id}"/></a></td>
                    <td><c:out value="${t.name}"/></td>
                    <td><c:out value="${t.description}"/></td>
                    <td><c:out value="${t.lastModified}"/></td>
                </tr>
            </c:forEach>
        </table>
        
<a href="/cms/template/create">Add template</a>
</body>
</html>